<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>

<html>
	<head>
		<title>JSP for AddNewsForm form</title>
	</head>
	<body>
		<center>
			<h3>
				添加管理员
			</h3>
			<html:errors />
			<html:form action="/addAdmin" method="post">
				<table align="center" width="40%" border="1">
					<tr>
						<td>
							用户名:
						</td>
						<td>
							<html:text property="username" />
							<html:errors property="username" />
						</td>
					</tr>
					<tr>
						<td>
							密码:
						</td>
						<td>
							<html:text property="password" />
							<html:errors property="password" />
						</td>
					</tr>
					<tr>
						<td>
							确认密码:
						</td>
						<td>
							<html:text property="repassword"/>
							<html:errors property="repassword" />
						</td>
					</tr>
					<tr>
						<td>
							<html:submit value="提交" />
						</td>
						<td><html:cancel value="重置" />
						</td>
					</tr>
				</table>
			</html:form>
		</center>
	</body>
</html>